<!DOCTYPE html>

<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>首页</title>
        <style>
            .wrapper {
                border: 1px solid blue;
                margin: 15px auto;
            }
            .title {
                color: blue;
                font-weight: bold;
            }
        </style>
    </head>
    <body>

        <div class="wrapper">
            <p class="title">JSP标准内置对象(Implicit Objects)</p>
            <ul>
                <li> <a href="/implicit/objects.jsp">在页面上输出JSP内置对象</a> </li>
                <li> <a href="/implicit/config.jsp">直接访问JSP来查看config对象</a> </li>
                <li> <a href="/config">将JSP当作Servlet来处理</a> </li>
                <li> <a href="/implicit/page.jsp">page & pageContext</a> </li>
                <li> <a href="/implicit/out.jsp">out: JspWriter</a> </li>
            </ul>
        </div>

        <div class="wrapper">
            <p class="title">JSP标准动作(Standard Actions)</p>
            <p>在JSP源文件中采用&lt;jsp:actionName&gt;形式使用的"标签"就是JSP标准动作</p>
            <div>
                <span>jsp:useBean / jsp:setProperty / jsp:getProperty</span>
                <form action="/actions/register.jsp" method="post">
                    <p>id: <input type="text" name="id"> </p>
                    <p>name: <input type="text" name="name"> </p>
                    <p>
                        gender:
                        <input type="radio" name="gender" value="男">靓仔
                        <input type="radio" name="gender" value="女">靓妹
                    </p>
                    <p>username: <input type="text" name="username"> </p>
                    <p>password: <input type="password" name="passwd"> </p>
                    <p>nickname: <input type="text" name="nickname"> </p>
                    <button type="submit">提交</button>
                </form>
            </div>
            <div style="margin: 15px auto;">
                <a href="/actions/include.jsp">&lt;jsp:include&gt;</a>
            </div>
            <div>
                <span>&lt;jsp:forward&gt;</span>
                <form action="/actions/forward.jsp" method="post">
                    <p>登录名称: <input type="text" name="username"> </p>
                    <p>登录密码: <input type="password" name="password"> </p>
                    <button type="submit">登录</button>
                </form>
            </div>
        </div>

    </body>
</html>